import { httpPost, httpPut, httpDelete, httpGet } from "@/utils/http"
import axios from 'axios'

// 新增医生
export const addDoctorsApi = (data?: object) => {
    return httpPost('/doctors/add', data)
}
// 查询医生
export const searchDoctorsApi = (data?: object) => {
    return httpPost('/doctors/search', data)
}
// 删除医生
export const deleteDoctorsApi = (data?: object) => {
    return httpDelete('/doctors/remove', data)
}
// 修改医生
export const updateDoctorsApi = (data?: object) => {
    return httpPut('/doctors/update', data)
}
// 获取医生详细
export const getDoctorsDetailApi = (data?: object) => {
    return httpGet('/doctors/detail', data)
}
// 查询角色
export const findRoleApi = (data?: object) => {
    return httpPost('/roles/search', data)
}
// 查询机构
export const findOrganizationsApi = (data?: object) => {
    return httpPost('/organizations/search', data)
}